package us.wili.dev.dao.mapper.base;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import us.wili.dev.model.entity.Order;
import us.wili.dev.model.example.OrderExample;

public interface BaseOrderMapper {
    int insert(Order record);

    int batchInsert(List<Order> records);

    int insertSelective(Order record);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Long id);

    long countByExample(OrderExample example);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKey(Order record);

    int updateByPrimaryKeySelective(Order record);

    Order selectByPrimaryKey(@Param("id") Long id, @Param("columns") String... columns);

    Order selectByPrimaryKeyForUpdate(@Param("id") Long id, @Param("columns") String... columns);

    Order selectByPrimaryKeyInShareMode(@Param("id") Long id, @Param("columns") String... columns);

    List<Order> selectByExample(OrderExample example);

    Order selectOneByExample(OrderExample example);
}